﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="FeedBackList.aspx.cs" Inherits="webadmin_FeedBackList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <link type="text/css" href="css/style.css" rel="stylesheet" />
    <link type="text/css" href="css/jquery-ui.css" rel="stylesheet" />
    <script type="text/javascript" src="../js/jquery.js"></script>
    <script type="text/javascript" src="js/lib.js"></script>
    <script type="text/javascript" src="../js/jquery-ui.js"></script>
    <script type="text/javascript">
    $(function(){
        BindBtn();
        AddTrClass($("#listinfo"));
        $("#txtBeginTime").datepicker({ changeMonth: true, changeYear: true, dateFormat: "yy-mm-dd" });
        $("#txtEndTime").datepicker({ changeMonth: true, changeYear: true, dateFormat: "yy-mm-dd" });  
    })
    function ShowDialog(id) {
        if (id > 0) {
            top.CreateIframe("回复专家答疑", "DoFeedBack.aspx?type=edit&id=" + id, 800, 150);
        } else {
            top.CreateIframe("新增专家答疑", "DoFeedBack.aspx?type=add", 800, 150);
        }
    }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div id="conBox">
            <div class="grid-box" style="padding-top: 10px">
                <table class="form-table">
                    <thead>
                        <tr>
                            <td colspan="3">
                                查询选项</td>
                        </tr>
                    </thead>
                    <tbody>
                        <tr class="tr1">
                            <td class="oneTd">
                                <div>
                                    <span style="color:#4b4646">分类选择：<asp:DropDownList ID="ddlSort" runat="server">
                                    </asp:DropDownList></span>
                                    <asp:Literal ID="ltlTitle" runat="server">标题</asp:Literal>：<asp:TextBox ID="txtName" runat="server" CssClass="txtbox"></asp:TextBox>
                                    <asp:Literal ID="ltlMan" runat="server">编辑人：</asp:Literal><asp:DropDownList ID="ddlAdmin" runat="server"></asp:DropDownList>
                                    </div>
                            </td>
                        </tr>
                        <tr class="tr1">
                            <td class="oneTd">
                            <div>按日期查看：从<asp:TextBox ID="txtBeginTime" runat="server" CssClass="txtbox" Width="100"></asp:TextBox>至<asp:TextBox ID="txtEndTime" runat="server" CssClass="txtbox" Width="100"></asp:TextBox> <asp:Button ID="btnSubmit" runat="server" Text="查询" OnClick="btnSubmit_Click" CssClass="button" />
                                    <asp:Button ID="btnReset" runat="server" Text="重置" OnClick="btnReset_Click" CssClass="button" /> 
                            </div>
                            </td>
                            </tr>
                    </tbody>
                </table>
                <div class="ctrlbar">
                    <div class="f-left">
                    </div>
                    <div class="f-right">
                        <a href="javascript:void(0)" onclick="ShowDialog(0)" class="toolbtn"><img src="images/ico-add.gif" alt="新增" />新 增</a>
                    </div>
                    <div class="clear">
                    </div>
                </div>
                <div class="grid-box">
                    <table class="grid-table">
                        <thead>
                            <tr>
                                <th class="align-l">标题</th>
                                <td>
                                    分类</td>
                                <td>
                                    类型</td>
                                <td>
                                    编辑人</td>
                                <td>
                                    状态</td>
                                <td>
                                    日期</td>
                                <td class="align-c">
                                    回复</td>
                                <td class="align-c">
                                    删除</td>
                            </tr>
                        </thead>
                        <tbody id="listinfo">
                            <asp:Repeater ID="rptFeedBack" runat="server" OnItemCommand="rptFeedBack_ItemCommand">
                                <ItemTemplate>
                                    <tr>
                                        <td>
                                            <a href="/faq/<%#Eval("SortUrlName")%>/" target="_blank" title="<%#Eval("SortName")%>"><%#Server.HtmlEncode(Eval("Title").ToString())%></a>
                                        </td>
                                        <td>
                                            <%#Eval("SortName").ToString()==string.Empty?"未分类":Server.HtmlEncode(Eval("SortName").ToString())%>
                                        </td>
                                        <td>
                                            <%#Convert.ToInt32(Eval("reType").ToString())==0?"游客问题":"自定义问题"%>
                                        </td>
                                        <td><%#Eval("UserName")%></td>
                                        <td><img src="<%# Convert.ToBoolean(Eval("IsShow"))?"images/open.gif":"images/close.gif"%>" alt="<%# Convert.ToBoolean(Eval("IsShow"))?"已回复":"未回复"%>"></td>
                                        <td>
                                            <%#Eval("AddTime")%>
                                        </td>
                                        <td class='align-c'>
                                            <a href="javascript:ShowDialog(<%#Eval("ID")%>)">
                                                <img alt="编辑" src="images/ico-edit.gif" /></a></td>
                                        <td class='align-c'>
                                            <asp:ImageButton ID="btnDelete" runat="server" CommandName="Delete" CommandArgument='<%#Eval("ID")%>'
                                                ImageUrl="images/ico-delete.gif" OnClientClick="return confirm('确定要删除该信息吗?');"
                                                ToolTip="删除" />
                                        </td>
                                    </tr>
                                </ItemTemplate>
                            </asp:Repeater>
                        </tbody>
                    </table>
                    <div id="noData" runat="server">
                        <div class="noDateMsg">
                            没有任何信息！</div>
                    </div>
                </div>
                <div id="pageinfo">
                    <webdiyer:AspNetPager ID="anpPage" runat="server" OnPageChanging="anpPage_PageChanging" CurrentPageButtonClass="curPage" PageSize="50">
                    </webdiyer:AspNetPager>
                </div>
            </div>
        </div>
    </form>
</body>
</html>
